#pragma once

#include "vectormath.h"


namespace Tmpl {


class Quad
{
public:
	Quad(){}
	Quad(Vec3f V0, Vec2f UV0, Vec3f V1, Vec2f UV1, Vec3f V2, Vec2f UV2, Vec3f V3, Vec2f UV3)
	{
		v0 = V0; uv0 = UV0;
		v1 = V1; uv1 = UV1;
		v2 = V2; uv2 = UV2;
		v3 = V3; uv3 = UV3;
	}
	Vec3f v0, v1, v2, v3;
	Vec2f uv0, uv1, uv2, uv3;
};

class Sphere
{
public:
	Sphere();
	void SubDivide();
	void Render();
private:
	Quad mQuads[19200];
	int mQuadCount;
};

}; // namespace Tmpl